package cn.ad.entity;

import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.Date;

@Alias("campaign")
public class Campaign extends PO implements Serializable {

	/**
	 * 订单表
	 */
	private static final long serialVersionUID = 5751730484103279550L;

	/**
	 * 订单名称
	 */
	private String name;

	/**
	 * 投放开始时间
	 */
	private Date startTime;

	/**
	 * 投放结束时间
	 */
	private Date endTime;

	/**
	 * 所属广告主标识，对应advertiser.id
	 */
	private int advertiserId;

	/**
	 * 订单状态 -1 删除 0 初始 1 有效 2 暂停 默认为 1 有效
	 */
	private Integer status;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 修改时间
	 */
	private Date updateTime;

	/**
	 * 备注说明
	 */
	private String description;

	/**
	 * 订单行业标识，对应industry.id
	 */
	private int industryId;

	/**
	 * KPI 计费单价。
	 */
	private double unitPrice;

	/**
	 * KPI计费方式 0 按点击计费CPC 1 按展示计费CPM
	 */
	private Integer feeType;

	/**
	 * 预算量限制，描述为预算货币金额，单位i（元）
	 */
	private double budget;

	/**
	 * 每日最大预算金额，单位（元）
	 */
	private double budgetDay;

	/**
	 * 展示总量限制
	 */
	private int maxImpressions;

	/**
	 * 每日最大展示数
	 */
	private int dayImpressions;

	/**
	 * 最大点击数
	 */
	private int dayClicks;

	/**
	 * 每日最大点击数
	 */
	private int maxClicks;
	/**
	 * 订单标签
	 */
	private String[] tags;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public int getAdvertiserId() {
		return advertiserId;
	}

	public void setAdvertiserId(int advertiserId) {
		this.advertiserId = advertiserId;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getIndustryId() {
		return industryId;
	}

	public void setIndustryId(int industryId) {
		this.industryId = industryId;
	}

	public double getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(double unitPrice) {
		this.unitPrice = unitPrice;
	}

	public Integer getFeeType() {
		return feeType;
	}

	public void setFeeType(Integer feeType) {
		this.feeType = feeType;
	}

	public double getBudget() {
		return budget;
	}

	public void setBudget(double budget) {
		this.budget = budget;
	}

	public double getBudgetDay() {
		return budgetDay;
	}

	public void setBudgetDay(double budgetDay) {
		this.budgetDay = budgetDay;
	}

	public int getMaxImpressions() {
		return maxImpressions;
	}

	public void setMaxImpressions(int maxImpressions) {
		this.maxImpressions = maxImpressions;
	}

	public int getDayImpressions() {
		return dayImpressions;
	}

	public void setDayImpressions(int dayImpressions) {
		this.dayImpressions = dayImpressions;
	}

	public int getDayClicks() {
		return dayClicks;
	}

	public void setDayClicks(int dayClicks) {
		this.dayClicks = dayClicks;
	}

	public int getMaxClicks() {
		return maxClicks;
	}

	public void setMaxClicks(int maxClicks) {
		this.maxClicks = maxClicks;
	}

	public String[] getTags() {
		return tags;
	}

	public void setTags(String[] tags) {
		this.tags = tags;
	}

}
